#include "comm/my_fnv_hash.h"
#include "comm/my_log.h"

int main() {
    const char *str1 = "aaaaaaaaaaaaaaaaaaaaaaaa";
    const char *str2 = "bbbbbbbbbbbbbbbbbbbbbbbb";
    const char *str3 = "cccccccccccccccccccccccc";
    const char *str4 = "dddddddddddddddddddddddd";

    uint64_t hash;
    my_fnv64_init(hash);
    my_fnv64_update(&hash, (const u_char *)str1, strlen(str1));
    my_fnv64_update(&hash, (const u_char *)str2, strlen(str2));
    my_fnv64_update(&hash, (const u_char *)str3, strlen(str3));
    my_fnv64_update(&hash, (const u_char *)str4, strlen(str4));

    MY_LOG_DEBUG("hash: %ud", hash);
    
    MY_LOG_DEBUG("test pass");
    return 0;
}